<?
  include_once('../classes/class.register.user.php');
    
  session_start();
    
  if (isset($_POST['addUser']))
  {
   $register = new RegisterUser();
   if($register->process())
   {
    echo "<script>loadUsers();</script>";
    echo "<script>alert('Usuario agregado satisfactoriamente');</script>";
   }else
       {
        echo '<p class="error">';
        echo '<b>'.$register->show_errors().'</b>'; 
        echo '</p>';    
       }
  }
?>
